﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GimnasioTauro
{
    public partial class Nutricionista_Perfil : Form
    {
        public Nutricionista_Perfil()
        {
            InitializeComponent();
            panelInfoPersonal.Visible = true;
            panelCitas.Visible = false;
            panelDietaLista.Visible = false;
            panelDietaNueva.Visible = false;
        }

        private void rutinaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelInfoPersonal.Visible = false;
            panelCitas.Visible = true;
            panelDietaLista.Visible = false;
            panelDietaNueva.Visible = false;
        }

        private void buttonModificar_Click(object sender, EventArgs e)
        {
            textBoxInfoDireccion.Enabled = true;
            textBoxInfoCorreo.Enabled = true;
            textBoxInfoTelefono.Enabled = true;
            buttonModificar.Visible = false;
            buttonGuardar.Visible = true;
        }

        private void buttonGuardar_Click(object sender, EventArgs e)
        {
            textBoxInfoDireccion.Enabled = false;
            textBoxInfoCorreo.Enabled = false;
            textBoxInfoTelefono.Enabled = false;
            buttonGuardar.Visible = false;
            buttonModificar.Visible = true;

            Confirmacion vet = new Confirmacion("Sus datos se han guardado con exito");
             vet.Visible = true;
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            
        }

        private void buttonRegistrar_Click(object sender, EventArgs e)
        {
            Confirmacion vet = new Confirmacion("Se ha registrado una nueva dieta con código XXXX");
            vet.Visible = true;        
        }

        private void informaciónPersonalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelInfoPersonal.Visible = true;
            panelCitas.Visible = false;
            panelDietaLista.Visible = false;
            panelDietaNueva.Visible = false;
        }

        private void nuevoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelInfoPersonal.Visible = false;
            panelCitas.Visible = false;
            panelDietaLista.Visible = false;
            panelDietaNueva.Visible = true;
        }

        private void listarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelInfoPersonal.Visible = false;
            panelCitas.Visible = false;
            panelDietaLista.Visible = true;
            panelDietaNueva.Visible = false;
        }
    }
}
